import React from 'react'
import { useAppSelector } from '../../app/hooks'
import './index.css'
const User:React.FC = () => {
  const list=useAppSelector<string[]>((state)=>state.list.urls)
  return (
    <div className='user'>
      {
        list.map((v,i)=>{
          // 点击每个详情对应放大图片
          return <div key={i} className="user-item">
            <img src={v} alt="" />
          </div>
        })
      }
    </div>
  )
}

export default User